#拆包
t1 = (2,5,4)
# a,b = t1 #ValueError: too many values to unpack (expected 2)
#x,y,z = (6,) #ValueError: not enough values to unpack (expected 3, got 1)
a,b,c = t1
print(a,b,c)
a = t1
print(a)

#变量个数与元组个数不一样
t2 = (2,5,8,4,3)
a,c,*b = t2 #装包
print(a,c,b)  #*b 表示未知的个数0~n个 0个就是一个空列表[]
print(*b) #拆包